package com.haircut.sys.dao.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haircut.sys.model.user.SysUser;
import com.haircut.sys.vo.user.UserReqVo;
import com.haircut.sys.vo.user.UserResVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 分页查询数据
     * @param pageReq
     * @param reqVo
     * @return
     */
    Page<UserResVo> findPage(IPage<?> pageReq, @Param("reqVo")UserReqVo reqVo);
}
